<?php
/**
 * Created by JetBrains PhpStorm.
 * User: User
 * Date: 5/7/13
 * Time: 4:32 PM
 * Note : Phai co content thi moi hien thi
 */
?>
    <div class="box_wrapper_title22">
        <div class="box_wrapper_title">
            <span class="title-icon"></span>

            <h1>Contact Us</h1>
        </div>
    </div>
<?php if (Yii::app()->user->hasFlash('success')): ?>
    <div class="up_space" style="padding-top: 12px;"></div>
    <div class="alert alert-success">
        <?php echo Yii::app()->user->getFlash('success');
        $model = new Contact();
        ?>
    </div>
<?php endif; ?>
<?php $form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
    'id' => 'contact-form',
    'enableAjaxValidation' => true,
    'type' => 'horizontal',
    'inlineErrors' => true
)); ?>
    <div class="contentContainer first last">
        <?php if ($form->errorSummary($model)) { ?>
            <div class="errorSummary" style="padding-top: 12px;">
                <?php echo $form->errorSummary($model);?>
            </div>
        <?php }?>
        <div class="contentPadd txtPage">
            <table border="0" width="100%" cellspacing="0" cellpadding="0">
                <tbody>
                <tr>
                    <td class="fieldKey">
                        <div class="crosspiece95"></div>
                        <font color='red'>*</font>Full Name:
                    </td>
                    <td class="fieldValue"
                        width="100%"><?php echo $form->textField($model, 'full_name', array('class' => 'input')); ?>

                </tr>
                <tr>
                    <td class="fieldKey"><font color='red'>*</font>E-Mail Address:</td>
                    <td class="fieldValue"><?php echo $form->textField($model, 'email', array('class' => 'input')); ?>
                </tr>
                <tr>
                    <td class="fieldKey" valign="top"><font color='red'>*</font>Content:</td>
                    <td class="fieldValue"><?php echo $form->textArea($model, 'content', array('class' => 'input', 'cols' => 50, 'rows' => 15)); ?>
                </tr>
                </tbody>
            </table>
            <div class="buttonSet">
                <span class="fl_right">
                    <strong class="button_content button_content2">
                        <strong class="button bg_button">
                            <strong class="button-t">
                                <span class="">
                                    <button id="tdb1" type="submit" name="submit"
                                            class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-icon-primary ui-priority-primary"
                                            role="button">
                                        <span class="ui-button-icon-primary ui-icon ui-icon-triangle-1-e">

                                        </span>
                                        <span class="ui-button-text">Continue</span>
                                    </button>
                                </span>
                                <script
                                    type="text/javascript">$("#tdb1").button({icons: {primary: "ui-icon-triangle-1-e"}}).addClass("ui-priority-primary").parent().removeClass("tdbLink");
                                </script>
                            </strong>
                        </strong>
                    </strong>
                </span>
            </div>
        </div>
    </div>
<?php $this->endWidget(); ?>